package com.xiaomaoguai.joor.org.joor;

/**
 * @ FileName: ReflectTest.java
 * @ Author: WeiHui-Z
 * @ Date: 2017-01-11  16:01
 * @ Version: v1.0.0
 */
public class ReflectTest {

	public static void main(String[] args) {
		String world = Reflect.on("java.lang.String")  // Like Class.forName()
				.create("Hello World") // Call most specific matching constructor
				.call("substring", 6)  // Call most specific matching substring() method
				.call("toString")      // Call toString()
				.get();                // Get the wrapped object, in this case a String
		System.out.println(world);
	}
}
